
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.ProductQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zjm
* @date 2023-05-16
**/
public interface ProductQualityRepository extends JpaRepository<ProductQuality, String>, JpaSpecificationExecutor<ProductQuality> {

    ProductQuality findProductQualityByIdAndDelete(String id, Integer delete);
    ProductQuality findProductQualityByProductCodeAndDelete(String productCode, Integer delete);

    ProductQuality findProductQualityById(String id);

    List<ProductQuality> findProductQualityByProductCodeAndDeleteAndInspectionIn(String productCode, int i, List<String> list);
}